package com.wodsy.phoenix.dataservice.goodsc.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.wodsy.phoenix.datadao.goodsc.dao.AreaDictDao;
import com.wodsy.phoenix.dataobject.goodsc.model.AreaDict;
import com.wodsy.phoenix.dataservice.goodsc.service.AreaDictService;

/**
 * 
 * @ClassName: AreaDictServiceImpl
 * @Description:
 * @author ydh
 * @date 2015年3月17日 下午1:54:07
 *
 */
@Service(interfaceClass = AreaDictService.class, interfaceName = "com.wodsy.phoenix.dataservice.goodsc.service.AreaDictService")
public class AreaDictServiceImpl implements AreaDictService {

	@Autowired
	private AreaDictDao areaDictDao;

	@Override
	public List<AreaDict> findByCityId(int cityId) {

		List<AreaDict> list = areaDictDao.findByCityId(cityId);
		System.out.println("-----------------------" + list.size());
		return list;
	}

	public static void main(String[] args) {
		com.alibaba.dubbo.container.Main.main(args);
	}
}
